package de.home.util;

import org.apache.commons.configuration.event.ConfigurationEvent;
import org.apache.commons.configuration.event.ConfigurationListener;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class ConfigListener implements ConfigurationListener {

   private static final Logger LOG = LogManager.getLogger(ConfigListener.class);

   public void configurationChanged(ConfigurationEvent event) {
      LOG.info("Property update: " + event.getPropertyName() + " = '" + event.getPropertyValue() + "' update: " + event.isBeforeUpdate());
   }

}
